﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Qianke.Core.Common.Http
{
    /// <summary>
    /// Http返回参数类
    /// </summary>
    public class HttpResult
    {

        /// <summary>
        /// Http请求返回的Cookie
        /// </summary>
        public string Cookie { set; get; }

        /// <summary>
        /// Cookie对象集合
        /// </summary>
        public CookieCollection CookieCollection { set; get; }


        /// <summary>
        /// 返回的String类型数据 只有ResultType.String时才返回数据，其它情况为空
        /// </summary>
        public string Html { set; get; }

        /// <summary>
        /// 返回的Byte数组 只有ResultType.Byte时才返回数据，其它情况为空
        /// </summary>
        public byte[] ResultByte { set; get; }


        /// <summary>
        /// header对象
        /// </summary>
        public WebHeaderCollection Header { set; get; }


        /// <summary>
        /// 返回状态说明
        /// </summary>
        public string StatusDescription { set; get; }

        /// <summary>
        /// 返回状态码,默认为OK
        /// </summary>
        public HttpStatusCode StatusCode { set; get; }

    }
}
